from flask import Flask,request

app = Flask(__name__)

#路由地址
@app.route('/args',methods=['GET','POST'])
def index():
    url = request.url
    method = request.method
    headers = request.headers.get('Content-Type')
    cookie = request.cookies.get('uid')
    return f'hello=={url}=={method}==={headers}==={cookie}'

if __name__ == '__main__':
    #启动web应用服务
    app.run(debug=True)